<?php

$TCA['topic'] = array(
	'ctrl' => $TCA['topic']['ctrl'],
	'interface' => array(
		'showRecordFieldList' => 'pid,hidden,title,description,fk_user_id'
	),
	'types' => array(
		'1' => array('showitem' => 'pid,hidden,title,description,fk_user_id')
	),
	'palettes' => array(
		'1' => array('showitem' => '')
	),
	'columns' => array(
		'hidden' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:discussion/Resources/Private/Language/locallang_db_topic.xml:topic.hidden',
			'config'  => array(
				'type' => 'check',
			),
		),
		'title' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:discussion/Resources/Private/Language/locallang_db_topic.xml:topic.title',
			'config'  => array(
				'type' => 'input',
				'size' => 128,
				'eval' => 'trim,required',
			),
		),
		'description' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:discussion/Resources/Private/Language/locallang_db_topic.xml:topic.bodytext',
			'config' => Array (
				'type' => 'text',
				'cols' => '30',
				'rows' => '5',
			),
		),
		'fk_user_id' => array(
			'exclude' => 0,
			'label'   => 'LLL:EXT:discussion/Resources/Private/Language/locallang_db_topic.xml:topic.user',
			'config'  => array(
				'type' => 'group',
				'internal_type' => 'db',
				'allowed' => 'fe_users',
				'minitems' => 1,
				'maxitems' => 1,
				'size' => 1,
				'wizards' => array(
			        'suggest' => array(
			            'type' => 'suggest',
			        ),
			    ),
			),
		),
	),
);

?>